﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="HtmlCreate.aspx.cs" Inherits="Manage_Cms_HtmlCreate" %>

<html>
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body>
<%--HYC--%>
<script type="text/javascript" src="../JS/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="../JS/tools.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $("#spanStarteTime").hide();
            $("#spanEndTime").hide();
               
            $("#StarteTime").bind("focus", function(){
              WdatePicker({isShowClear:false,readOnly:false})
              });
            
            $("#EndTime").bind("focus", function(){
              WdatePicker({isShowClear:false,readOnly:false})
              });
          
            $("#txtCreateTimeBegin").bind("focus", function(){
              WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:false})
              });
            $("#txtCreateTimeEnd").bind("focus", function(){
            WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:false})
            });
        });
            
	   
	    
    </script>
    <%--hyc--%>
    <script type="text/javascript" language="javascript">
        function selectAll(isChecked)
        {
	        for(var i=0; i<document.getElementById('NodeIDCollectionToCreate').options.length; i++)
	        {
		        document.getElementById('NodeIDCollectionToCreate').options[i].selected = isChecked;
	        }
        }
    </script>

    <%if (!string.IsNullOrEmpty(KeRui.Common.PageRequest.GetString("errormsg")))
      {
    %>
    <div class="msg_failed">
        <%=KeRui.Common.PageRequest.GetString("errormsg")%>
    </div>
    <%
        }%>
    <div class="tab">
        <div class="tabOn6">
            <a href="#"><strong>生成<%=pagetexttab%>页面</strong></a><input type="hidden" name="siteid" value="<%=SiteID %>" /></div>
        <div class="clearer">
        </div>
    </div>
    <div class="column">
        <div class="tips">
            <%=pagetext%></div>
        <div style="<%=KeRui.Common.PageRequest.GetString("act")=="index"?"display:none;": "" %>">
            <form id="form1" action="?buttom=publish&act=<%=Act %>&siteid=<%=SiteID %>"
                method="post">
                <table width="95%" align="center" cellpadding="3" cellspacing="3">
                    <tr>
                        <td width="160" align="left">
                            <label id="ctl02_ctl00_label">
                                <a onclick="if (__Help_OnClick('ctl02_ctl00_pnlHelp')) return false;" id="ctl02_ctl00_cmdHelp"
                                    tabindex="-1" href="javascript:__doPostBack('ctl02$ctl00$cmdHelp','')">
                                    <img id="ctl02_ctl00_imgHelp" tabindex="-1" src="../pic/icons/help.gif" alt="选定栏目生成此栏目下的内容（可多选）"
                                        style="border-width: 0px;" /></a>
                                <nobr>
                                    <span id="ctl02_ctl00_lblLabel">生成选定的<%=pagetexttab%>：</span></nobr>
                            </label>
                            <br>
                            <div id="ctl02_ctl00_pnlHelp" class="Help" style="display: none;">
                                <span id="ctl02_ctl00_lblHelp">选定栏目生成此栏目下的<%=pagetexttab%>（可多选）</span>
                            </div>
                        </td>
                        <td align="left">
                            <select size="19" name="NodeIDCollectionToCreate" multiple="multiple" id="NodeIDCollectionToCreate">
                                <%=SelectNodeList(0, KeRui.Common.PageRequest.GetInt("nodeid", -1))%>
                            </select>
                            &nbsp;&nbsp;
                            <input id="CheckAll" type="checkbox" onclick="selectAll(this.checked);">
                            <label for="CheckAll">
                                全选</label>
                        </td>
                    </tr>
                    <tr style="background-position: center 50%; background-image: url(../pic/line.gif);
                        background-repeat: repeat-x">
                        <td width="160" align="left">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td width="160" align="left">
                            <label id="ctl03_ctl00_label">
                                <a onclick="if (__Help_OnClick('ctl03_ctl00_pnlHelp')) return false;" id="ctl03_ctl00_cmdHelp"
                                    tabindex="-1" href="javascript:__doPostBack('ctl03$ctl00$cmdHelp','')">
                                    <img id="ctl03_ctl00_imgHelp" tabindex="-1" src="../pic/icons/help.gif" alt="点击按钮生成内容"
                                        style="border-width: 0px;" /></a>
                                <nobr>
                                    <span id="ctl03_ctl00_lblLabel">生成<%=pagetexttab%>页：</span></nobr>
                            </label>
                            <br>
                            <div id="ctl03_ctl00_pnlHelp" class="Help" style="display: none;">
                                <span id="ctl03_ctl00_lblHelp">点击按钮生成内容</span>
                            </div>
                        </td>
                        <td align="left"><div style="<%=KeRui.Common.PageRequest.GetString("act")!="content"?"display:none;": "" %>">
                            <!--<select name="ChooseScope" id="ChooseScope">
                                <option value="All">所有选中的栏目</option>
                                <option value="Month">一个月内更新的内容</option>
                                <option value="Day">一天内更新的内容</option>
                                <option value="2Hour">2小时内更新的内容</option>
                            </select>--><input type="checkbox" name="timechose" />选择所要生成内容的出版时间（启用此功能用来筛选特定时间内出版的内容）<br />
                            开始：
                            <input name="txtCreateTime" id="txtCreateTimeBegin" value="<%=DateTime.Now%>"
                            type="text" class="Wdate" />
                            结束：
                            <input name="txtCreateTime" id="txtCreateTimeEnd" value="<%=DateTime.Now%>"
                            type="text" class="Wdate" />
                            </div>
                            &nbsp;&nbsp;
                            <input type="submit" name="sub" value="生成选定内容" id="CreateContentButton" class="button"
                                style="margin-bottom: 0px;" />
                        </td>
                    </tr>
                </table>
            </form>
        </div>
        <input type="button" style="<%=KeRui.Common.PageRequest.GetString("act")!="index"?"display:none;": "" %>"
            value="生成首页"  class="button" onclick="window.location.href='HtmlCreateProgress.aspx?act=index&siteid=<%=KeRui.Common.PageRequest.GetInt("siteid", -1) %>'" />  
    </div>
</body>
</html>
